package com.competition.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "agricultural_training_order")
public class AgriculturalTrainingOrder {

    @Id
    @Column(name = "order_id", nullable = false)
    private String orderId; // 订单id

    @Column(name = "user_id")
    private String userId; // 用户id

    @Column(name = "agricultural_training_id")
    private String agriculturalTrainingId; // 培训项目id


    // 根据需要，还可以添加其他业务逻辑方法
}
